package com.mooc.mymooc.utils.common;

public class getExtName {
    public static void main(String[] args) {
        String name = "fsdfsdasadsa.mp4";
        int at = name.indexOf('.');
        String ext = name.substring(at+1,name.length());
        System.out.println(ext);
    }
}
